@import '~less_base/common';

.wx-pI-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 900;
    background: rgba(0, 0, 0, .1);
    .wx-pI-main {
        height: 90%;
        width: 90%;
        margin: 0 auto;
        background: #000;
        overflow-y: auto;
        overflow-x: hidden;

        position: absolute;;
        top: 50%;
        left: 50%;
        -ms-transform: translate(-50%, -50%);
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%); 

        .img-list {
            height: 100%;

            img {
                max-width: 100%;
                height: auto;
                width: auto;
                margin: 0 auto;
                display: block;
            }
            .img-item.show {
                display: block;
            }
            .img-item {
                display: none;
                margin: 0 auto;
                position: relative;
                -webkit-user-select: none;
                -moz-user-select: none;
                -ms-user-select: none;
                user-select: none;

                &.center {
                    height: 100%;
                    overflow: hidden;
                    img {
                        max-height: 100%;
                        position: absolute;;
                        top: 50%;
                        left: 50%;
                        -ms-transform: translate(-50%, -50%);
                        -webkit-transform: translate(-50%, -50%);
                        transform: translate(-50%, -50%);
                    }
                }
            }
        }
    }
    .status {
        position: fixed;
        bottom: 6%;
        left: 50%;
        color: #fff;
        z-index: 5;
        font-size: 1.4em;
        margin: 0;
        transform: translateX(-50%);
    }

    .close {
        position: fixed;
        right: 5%;
        top: 5%;
        margin: -12px -12px 0 0;
        border-radius: 50%;
        height: 38px;
        width: 38px;
        z-index: 22;
        cursor: pointer;
        background-image: url("@{CDNURL}res/js/plugin/img/multipic_ico.png?v=@{version}");
    }
}
